<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Spitter</title>
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/style.css}"/>
</head>
<body onload="document.f.username.focus();">

<div id="header" th:include="page :: header"></div>

<div id="content">
    <a th:href="@{/spitter/register}">Register</a>

    <form name="f" method="post" th:action="@{/login}">
        <table align="center">
            <tr>
                <td>User:</td>
                <td><input type="text" name="username" value=""/></td>
            </tr>
            <tr>
                <td>Password:</td>
                <td><input type="password" name="password"/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="checkbox" id="remember_me" name="remember_me"/>
                    <label for="remember_me" class="inline">Remember me</label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" name="submit" value="Login"/>
                </td>
            </tr>
        </table>
    </form>
</div>

<div id="footer" th:include="page :: copy"></div>
</body>
</html>